package com.spark.lola.constant;

/**
 * 采购单状态
 * @Author: DengYeJun
 * @Date: 2020/4/28 14:23
 */
public class SupOrderStatus {
    /**
     * 待发货
     */
    public final static int WAIT = 0;
    /**
     * 已发货,待收货
     */
    public final static int WAIT_ECEIVING=1;
    /**
     * 已收货,待定价
     */
    public final static int WAIT_PRICING=2;
    /**
     * 已定价,待核算
     */
    public final static int WAIT_ADJUST=3;
    /**
     * 已审批,待结算
     */
    public final static int WAIT_PAYMENT=4;
    /**
     * 已完成
     */
    public final static int COMPLETED=5;
    /**
     * 已取消
     */
    public final static int CANCELED=6;
    /**
     * 已退货
     */
    public final static int RETURN=7;

    /**
     * 已回收
     */
    public final static int DUSTBIN=9;
    /**
     * 部分退货
     */
    public final static int PART_RETURN=8;

    /**
     * 已核算,待审批
     */
    public final static int WAIT_REPLY=10;

    public static String getTxt(int status){
        String txt ="";
        switch (status){
            case WAIT:
                txt="待发货";
                break;
            case WAIT_ECEIVING:
                txt="待收货";
                break;
            case WAIT_PRICING:
                txt="待定价";
                break;
            case WAIT_ADJUST:
                txt="待核算";
                break;
            case WAIT_PAYMENT:
                txt="待结算";
                break;
            case COMPLETED:
                txt="已完成";
                break;
            case CANCELED:
                txt="已取消";
                break;
            case RETURN:
                txt="已退货";
                break;
            case PART_RETURN:
                txt="部分退货";
                break;
            case WAIT_REPLY:
                txt="待审批";
                break;
            default:
                txt="未知状态";
                break;
        }
        return txt;
    }
}
